/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package CelestialDataStructures;

import java.text.DecimalFormat;

public class PriceFormat {

    private static DecimalFormat m_fmtPrice = new DecimalFormat("$ 0.00");
    
    public static String format(double price){
        return m_fmtPrice.format(price);
    }
    /*************************************************************************/
    public static void main(String[] args){
        System.out.println(format(Double.parseDouble("100.5")));
    }
}
